package com.hmh.Entities;

public class Comment {
    private int id;
    private int post_id;
    private String name;
    private String text;

    @Override
    public String toString() {
        return "Comment{" +
                "id=" + id +
                ", post_id=" + post_id +
                ", name='" + name + '\'' +
                ", text='" + text + '\'' +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getPost_id() {
        return post_id;
    }

    public void setPost_id(int post_id) {
        this.post_id = post_id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public Comment(int id, int post_id, String name, String text) {
        this.id = id;
        this.post_id = post_id;
        this.name = name;
        this.text = text;
    }
    public Comment(){}
}
